package com.geek.water.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/7/25
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("collection_policy")
@ApiModel(description = "催收策略表")
public class CollectionPolicy implements Serializable {
    @ApiModelProperty("主键，自增策略ID")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("逾期天数")
    @TableField("days_overdue")
    private Integer daysOverdue;

    @ApiModelProperty("通知渠道")
    @TableField("channel")
    private String channel;

    @ApiModelProperty("关联模板ID")
    @TableField("template_id")
    private Long templateId;
}
